package com.jiyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.model.Quiz;
import org.apache.ibatis.annotations.Select;

public interface QuizMapper extends BaseMapper<Quiz> {
    @Select("select count(p.id) from quiz q , quiz_paper q1,paper p where q.id=q1.qid and q1.pid=p.id and q.id=#{id}")
    Integer findQuiz(Integer id);
}
